package logic;

import java.io.Serializable;

public class Loan extends Object implements Serializable{
	
	public final static int OPEN_LOAN_VALID = 1;
	public final static int OPEN_LOAN_DELAYED = 2;
	public final static int CLOSED_LOAN_VALID = 3;
	public final static int CLOSED_LOAN_DELAYED = 4;
	
	public final static int LOAN_BOOK_VALID = 1;
	public final static int LOAN_BOOK_LOST = 2;
	public final static int LOAN_BOOK_DAMAGED = 3;
	
	public final static int EXTEND_LOAN_TIME = 10;
		
	private static final long serialVersionUID = 1L;

	private int LID;
	private int UID;
	private int BID;
	private int BCID;
	private String LoanDate;
	private String ReturnDate;
	private String ActualReturnDate;
	private int extended;
	private int status;
	private int HotBook;
	private int BookStatus;
	private String memberName;
	private String bookName;
	
	public Loan(int LID, int UID,int BID,int BCID,String LoanDate,String ActualReturnDate,String ReturnDate,
			int extended, int status,int HotBook,int BookStatus,String memberName,String bookName) {
		this.LID = LID;
		this.UID = UID;
		this.BID  = BID;
		this.BCID = BCID;
		this.LoanDate = LoanDate;
		this.ReturnDate = ReturnDate;
		this.ActualReturnDate = ActualReturnDate;
		this.extended = extended;
		this.status = status;
		this.HotBook = HotBook;
		this.BookStatus = BookStatus;
		this.memberName = memberName;
		this.bookName = bookName;
	}
	
	//TODO verify if JavaDoc needed for each specific getter
	
	public int getLID(){return this.LID;}
	public int getUID(){return this.UID;}
	public int getBID(){return this.BID;}
	public int getBCID(){return this.BCID;}
	public String getLoanDate(){return this.LoanDate;}
	public String getReturnDate(){return this.ReturnDate;}
	public String getActualReturnDate(){return this.ActualReturnDate;}
	public int getextended(){return this.extended;}
	public int getstatus(){return this.status;}
	public int getHotBook(){return this.HotBook;}
	public int getBookStatus(){return this.BookStatus;}
	public String getmemberName(){return this.memberName;}
	public String getbookName(){return this.bookName;}
	public long getserialVersionUID(){return serialVersionUID;}
}
